//
//  GetVerifyCodeOperation.m
//  PlayBall
//
//  Created by Edward Zhang on 12-5-21.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddGetVerifyCodeOperation.h"
#import "JddParameterBuilder.h"

@implementation JddGetVerifyCodeOperation

@synthesize mobile;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
//    NSString *bodyString = [JddParameterBuilder getVerifyCodeParameterWithMobile:self.mobile];
    NSString *bodyString = [JddParameterBuilder getVerifyCodeParameterWithMobile:self.mobile oldMobile:self.oldMobile];
    NSData *dataMobile = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(GetVerifyCodeOperationResult:) withObject:dataMobile waitUntilDone:NO];        
}

@end
